home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 2001 May
/
SGI IRIX Base Documentation 2001 May.iso
/
usr
/
relnotes
/
modules
/
ch2.z
/
ch2
Wrap
Text File
|
2001-04-17
|
2KB
|
58 lines
Modules installation notes
--------------------------
The Modules package currently installs entirely into /opt/modules/2.2.1.
The manpages exist in that directory.
You must create a symbolic link named modules which points to the version
installed if it is not already present. This will set the default version
of modules. Initial installs of the modules package will create this link
if one is not present.
# cd /opt/modules
# ln -s 2.2.1 modules
Users must initilize modules and load the 'modules' modulefile to
see the manpages (module, modulesfile).
e.g. (csh)
% source /opt/modules/modules/init/csh
% module load modules
% man module
% man modulefile
The /etc/cshrc and /etc/profile can be used to initialize modules.
It is strongly suggested that users add the initilization to their login
scripts so modules is readily available in sub-shells and batch environments.
Since the "module" command is an alias in csh and a function in ksh,
the following examples work well.
C-shell .login and .cshrc:
# This initilizes modules in your initial login and remote shells (.login).
if (-f /opt/modules/modules/init/csh) then
source /opt/modules/modules/init/csh
module load modules
endif
# This initializes the module command in csh subshells (.cshrc). No need
# to reload any modulefiles.
if (-f /opt/modules/modules/init/csh) then
source /opt/modules/modules/init/csh
endif
KSH (POSIX) .profile and .env:
# This initilizes modules in your initial login shell (.profile).
if [ -f /opt/modules/modules/init/ksh ] ; then
. /opt/modules/modules/init/ksh
module load modules
fi
# This initializes the module command in ksh subshells (e.g. $ENV=.env).
# No need reload any modulefiles.
if [ -f /opt/modules/modules/init/ksh ] ; then
. /opt/modules/modules/init/ksh
fi
The modulefile manpage explains the basics in creating a modulefile.
Since modulefiles are basicly Tcl scripts, knowledge of Tcl is helpful.